<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Core</title>
		<script src="../../py/system.js" type="text/javascript"></script>
		<script src="../../py/system/core/date.js" type="text/javascript"></script>
		<script src="../../py/system/core/dateex.js" type="text/javascript"></script>
		
		<script src="../../common/project/project.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/default.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/debug.js" type="text/javascript"></script>
	</head>
	<body>
		<script>
			var fns = [
				"Basic",
				["Date.prototype.toString", function(){ return new Date().toString("yyyy 年 MM 月 dd 日  yy 年 M 月 d 日   hh mm ss"); }],
				["Date.prototype.dayDiff", function(){ return new Date('2011/1/1').dayDiff(2, 1) }, 31],
				["Date.isLeapYear", function(){ return Date.isLeapYear(2002); }, false],
				["Date.dayInMonth", function(){ return Date.dayInMonth(2001, 2); }, 28],
				["Date.compare", function(){ return Date.compare(new Date(), new Date()); }, 0],
				"Advance",
				["Date.prototype.addDay", function(){ return new Date('2011/2/27').addDay(2).toString("yyyy/MM/dd "); }],
				["Date.prototype.addMonth", function(){ return new Date('2011/2/27').addMonth(2).toString("yyyy/MM/dd "); }],
				["Date.prototype.addYear", function(){ return new Date('2011/2/27').addYear(2).toString("yyyy/MM/dd "); }],
				["Date.prototype.addWeek", function(){ return new Date('2011/2/27').addWeek(2).toString("yyyy/MM/dd "); }]
			];
		
		</script>
	</body>
</html>